import i18n from '@/locales/useI18n'
import { Router } from './types'
import { BasicLayout, UserLayout } from '@/layouts'
export default [
  {
    path: '/:path(.*)',
    name: 'NoMatch',
    component: () => import('@/pages/exception/404.vue')
  },
  {
    path: '/appSelect',
    name: 'appSelect',
    // component: BasicLayout,
    // redirect: '/user/login',
    // hidden: true,
    // children: [
    //   {
    //     path: '',
    //     name: '',
    component: () => import('@/pages/skrivet/app/index.vue'),
    meta: { title: '工作台' }

  },
  {
    path: '/user',
    name: 'user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import('@/pages/user/loginHome.vue'),
        meta: { title: i18n?.global?.t('user.login.login') }
      }
    ]
  },
  {
    path: '/pages/modules/myApp',
    component: () => import('@/pages/modules/myApp/index.vue'),
    name: 'QueryList'
    // meta: { title: '考核模型' }
  },
  {
    path: '/notice',
    component: () => import('@/pages/modules/article/notice/index.vue'),
    name: 'notice'
    // meta: { title: '考核模型' }
  },
  {
    path: '/special',
    component: () => import('@/pages/modules/article/special/index.vue'),
    name: 'special'
    // meta: { title: '考核模型' }
  },
  {
    path: '/task/doorTask/doorTask/add',
    component: () => import('@/pages/modules/doorTask/add.vue'),
    name: 'information'
    // meta: { title: '考核模型' }
  },

] as Router[]
